{% extends "base.html" %}

{% load comments %}
{% load humanize %}

{% block title %}View Users{% endblock %}

{% block content %}
<h1>User List</h1>
<div class="pagination">
	<span class="step-links">
		{% if page_obj.has_previous %}
			<a href="?page={{ page_obj.previous_page_number }}">previous</a>
		{% endif %}

		<span class="current">
			Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}.
		</span>

		{% if page_obj.has_next %}
			<a href="?page={{ page_obj.next_page_number }}">next</a>
		{% endif %}
	</span>
</div>
</p>

<ul>
{% for user in object_list %}
<li id="user_{{ user.pk }}" >
	<a href="{{ user.get_profile.get_absolute_url }}">
		<img src="{{ user.get_profile.get_avatar_url }}" align="left" alt="" width="48px" height="48px">
		<br/>
		<br/>
		{{ user.first_name}} {{ user.last_name }} ({{ user.username }})
	</a>
	</li>
{% endfor %}
</ul>
{% endblock %}
